import 'package:flutter/material.dart';
import 'package:flutter_syt/theme/theme_color.dart';

class UnderlineInputDecoration extends InputDecoration {
  UnderlineInputDecoration({
    String hintText = '',
    Widget? prefixIcon,
    Widget? suffixIcon,
  }) : super(
          hintText: hintText,
          prefixIcon: prefixIcon,
          prefixIconConstraints: BoxConstraints(minWidth: 0, minHeight: 0),
          suffixIcon: suffixIcon,
          counterText: '',
          hintStyle: TextStyle(
            color: ThemeColor.colorBlack40,
            fontSize: 16,
          ),
          disabledBorder: UnderlineInputBorder(
            borderSide: BorderSide(
              color: ThemeColor.colorBlack20,
            ),
          ),
          // border: UnderlineInputBorder(
          //   borderSide: BorderSide(
          //     color: ThemeColor.colorBlack20,
          //   ),
          // ),
          // enabledBorder: UnderlineInputBorder(
          //   borderSide: BorderSide(
          //     color: ThemeColor.colorBlack20,
          //   ),
          // ),
          // focusedBorder: UnderlineInputBorder(
          //   borderSide: BorderSide(
          //     color: ThemeColor.colorBlack20,
          //   ),
          // ),
          errorBorder: InputBorder.none,
          errorStyle: TextStyle(height: 0),
          focusedErrorBorder: InputBorder.none,
        );
}
